package com.doeis.uwork.entity.mongo;

import java.util.List;

import com.doeis.minaserver.bean.MongoEntify;
import com.voland.core.annotation.Table;

@Table(name="message")
public class Message extends MongoEntify implements Cloneable {
	
	private String _topic_id;//组编号
	private String _user_id;//是谁的信息，主要用于查询	
	private int _scene_type;//场景类型 0 预留 1 hn 2 doeis 3 hnc 4 allin
	private String _scene_id;//场景关联编号  
	private long _scene_time;//场景关联时间
	//4 allin 场景类型x10,
	private String _content;	//内容
	private MessageUser _form;//谁发的信息，信息创始人
	private long _created_at;
//	private String _tos;
//	private String _ccs;
//	private String _replys;
	private List<MessageUser> _tos;//对谁说
	private List<MessageUser> _ccs;//抄送谁
	private List<Reply> _replys;//回复列表
	private String _img;//背景图
	private long _countdown;//倒计时，
	private long _reply_at;//最后回复时间
	private int _status = 0;//该记录的状态 默认0 无状态，1-开启 2-关闭
	private Boolean _hasRead = false;//是否已读 默认false；
	
	
//	@Associate
//	private List<User> to_users;
//	
//	@Associate
//	private List<Reply> reply_list;
//	
	
	
	public int get_status() {
		return _status;
	}
	
	public long get_scene_time() {
		return _scene_time;
	}

	public void set_scene_time(long _scene_time) {
		this._scene_time = _scene_time;
	}

	public void set_status(int _status) {
		this._status = _status;
	}
	public Boolean get_hasRead() {
		return _hasRead;
	}
	public void set_hasRead(Boolean _hasRead) {
		this._hasRead = _hasRead;
	}
	public String get_topic_id() {
		return _topic_id;
	}
	public void set_topic_id(String _topic_id) {
		this._topic_id = _topic_id;
	}
	public int get_scene_type() {
		return _scene_type;
	}
	public void set_scene_type(int _scene_type) {
		this._scene_type = _scene_type;
	}
	public String get_scene_id() {
		return _scene_id;
	}
	public void set_scene_id(String _scene_id) {
		this._scene_id = _scene_id;
	}
	public String get_content() {
		return _content;
	}
	public void set_content(String _content) {
		this._content = _content;
	}	
	
	public String get_user_id() {
		return _user_id;
	}
	public void set_user_id(String _user_id) {
		this._user_id = _user_id;
	}
	public MessageUser get_form() {
		return _form;
	}
	public void set_form(MessageUser _form) {
		this._form = _form;
	}
	public long get_created_at() {
		return _created_at;
	}
	public void set_created_at(long _created_at) {
		this._created_at = _created_at;
	}
//	public String get_tos() {
//		return _tos;
//	}
//	public void set_tos(String _tos) {
//		this._tos = _tos;
//	}
//	public String get_ccs() {
//		return _ccs;
//	}
//	public void set_ccs(String _ccs) {
//		this._ccs = _ccs;
//	}
//	public String get_replys() {
//		return _replys;
//	}
//	public void set_replys(String _replys) {
//		this._replys = _replys;
//	}
	
	public String get_img() {
		return _img;
	}
	public List<MessageUser> get_tos() {
		return _tos;
	}
	public void set_tos(List<MessageUser> _tos) {
		this._tos = _tos;
	}
	public List<MessageUser> get_ccs() {
		return _ccs;
	}
	public void set_ccs(List<MessageUser> _ccs) {
		this._ccs = _ccs;
	}
	public List<Reply> get_replys() {
		return _replys;
	}
	public void set_replys(List<Reply> _replys) {
		this._replys = _replys;
	}
	public void set_img(String _img) {
		this._img = _img;
	}
	public long get_countdown() {
		return _countdown;
	}
	public void set_countdown(long _countdown) {
		this._countdown = _countdown;
	}
//	public List<User> getTo_users() {
//		return to_users;
//	}
//	public void setTo_users(List<User> to_users) {
//		this.to_users = to_users;
//	}
//	public List<Reply> getReply_list() {
//		return reply_list;
//	}
//	public void setReply_list(List<Reply> reply_list) {
//		this.reply_list = reply_list;
//	}
	
	public long get_reply_at() {
		return _reply_at;
	}
	public void set_reply_at(long _reply_at) {
		this._reply_at = _reply_at;
	}

	@Override
	public Object clone() throws CloneNotSupportedException {
		// TODO Auto-generated method stub
		return super.clone();
	}
}


